﻿namespace Harness.Verificators
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using mshtml;

    internal class ReadyStateCompleteVerificator : IVerificator
    {
        #region Constants
        #endregion

        #region Public Methods

        public void SyntaxCheck(IHarness harness, IEnumerable<object> args)
        {
            // none
        }

        public bool Verify(IHarness harness, IEnumerable<object> args)
        {
            return IE.IsReadyStateComplete(IE.ActiveBrowser);
        }

        #endregion
    }
}
